package com.bang.study.adapter;

import lombok.extern.slf4j.Slf4j;

/**
 * @ClassName: App
 * @author: BANG
 * @Date: 2019/10/28 17:39
 * @Version: 1.0
 * @Modified By:
 * @Desc: TODO
 */
@Slf4j
public class App {

    public static void main(String[] args) {
        Computer computer = new MacComputer();
        SDCardImpl sdCard = new SDCardImpl();
        String readSD = computer.readSD(sdCard);
        System.out.println(readSD);

        String sd = computer.readSD(new TFCardAdapter(new TFCardImpl()));
        System.out.println(sd);
    }
}
